package cn.js.sangu.unitStore.common.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 说明：
 * 作者：linshuo
 * 日期：2024/8/19 14:13
 */
@Component
public class SysInfo {

    @Value("${ip:localhost}")
    static String ip;

    @Value("${server.port}")
    static String port;

    // 实际文件存储父目录:当前项目路径:D:\Project\idea\store
    public static final String ROOT_PATH = System.getProperty("user.dir") + "\\files";

    public static final Integer UserUpload = 1;
    public static final Integer ToolGeneration = 2;

    // 加工状态：0未加工，1正在加工，2加工完成，3加工失败，4加工取消
    public static final Integer ProcessStatusNone = 0;
    public static final Integer ProcessStatusProcessing = 1;
    public static final Integer ProcessStatusSuccess = 2;
    public static final Integer ProcessStatusFail = 3;
    public static final Integer ProcessStatusCancel = 4;

    public static final Integer ReadingStatusUnread = 0;
    public static final Integer ReadingStatusIsread = 1;
    public static final Integer ReadingStatusUnconf = 2;
    public static final Integer ReadingStatusIsConf = 3;
}
